package com.hyt.it.ogt.ykcj.domain.system;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hyt.it.ogt.ykcj.common.annotation.Excel;

import io.swagger.annotations.ApiModelProperty;

/**
 * 行政区划对象 sys_district
 * 
 * @author admin
 * @date 2021-09-09
 */
public class SysDistrict
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty(value = "主键ID")
    private String id;

    /** 行政区名称 */
    @ApiModelProperty(value = "行政区名称")
    @Excel(name = "行政区名称")
    private String name;

    /** 国标码 */
    @ApiModelProperty(value = "国标码")
    @Excel(name = "国标码")
    private String code;

    /** 父ID */
    @ApiModelProperty(value = "父ID")
    @Excel(name = "父ID")
    private String pid;

    /** 级别: 1,2,3 */
    @ApiModelProperty(value = "级别: 1,2,3")
    @Excel(name = "级别: 1,2,3")
    private Long level;

    /** 合并名称 */
    @ApiModelProperty(value = "合并名称")
    @Excel(name = "合并名称")
    private String address;

    /** 合并ID */
    @ApiModelProperty(value = "合并ID")
    @Excel(name = "合并ID")
    private String line;

    /** $column.columnComment */
    @ApiModelProperty(value = "自动创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "自动创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date currentTimeAuto;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setPid(String pid) 
    {
        this.pid = pid;
    }

    public String getPid() 
    {
        return pid;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setLine(String line) 
    {
        this.line = line;
    }

    public String getLine() 
    {
        return line;
    }
    public void setCurrentTimeAuto(Date currentTimeAuto) 
    {
        this.currentTimeAuto = currentTimeAuto;
    }

    public Date getCurrentTimeAuto() 
    {
        return currentTimeAuto;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("pid", getPid())
            .append("level", getLevel())
            .append("address", getAddress())
            .append("line", getLine())
            .append("currentTimeAuto", getCurrentTimeAuto())
            .toString();
    }
}
